package view;

import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.JLabel;

import java.awt.Font;

import javax.swing.JTextField;
import javax.swing.JComboBox;

import net.sf.nachocalendar.CalendarFactory;
import net.sf.nachocalendar.components.DateField;

import com.sun.xml.internal.messaging.saaj.soap.JpegDataContentHandler;


public class PainelCadastroDespesa extends JPanel {
	
	public PainelCadastroDespesa()
	{
		criarPainel();
	}

	private void criarPainel() {

		this.setLayout(null);
		this.setSize(800,200);
		
		JButton btnNewButton = new JButton("New button");
		btnNewButton.setBounds(261, 166, 89, 23);
		add(btnNewButton);
		
		JLabel lblNewLabel = new JLabel("CONTROLE DE DESPESAS");
		lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 20));
		lblNewLabel.setBounds(261, 0, 253, 29);
		add(lblNewLabel);
		
		JLabel lblTipoDeDespesa = new JLabel("Tipo de Despesa:\r\n");
		lblTipoDeDespesa.setBounds(10, 49, 100, 29);
		add(lblTipoDeDespesa);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setBounds(121, 53, 145, 20);
		add(comboBox);
		
		JButton btnNewButton_1 = new JButton("New button");
		btnNewButton_1.setBounds(374, 166, 89, 23);
		add(btnNewButton_1);
		
		JButton btnNewButton_2 = new JButton("New button");
		btnNewButton_2.setBounds(488, 166, 89, 23);
		add(btnNewButton_2);
		
		JLabel lblDataVencimento = new JLabel("Data de Vencimento:\r\n");
		lblDataVencimento.setBounds(285, 56, 125, 14);
		add(lblDataVencimento);
		
		DateField fieldDataVencimento = CalendarFactory.createDateField();
		fieldDataVencimento.setBounds(410, 53, 100, 23);
		add(fieldDataVencimento);

		JLabel lblDataPagamento = new JLabel("Data de Pagamento:\r\n");
		lblDataPagamento.setBounds(531, 56, 119, 14);
		add(lblDataPagamento);

		DateField fieldDataPagamento = CalendarFactory.createDateField();
		fieldDataPagamento.setBounds(660, 53, 100, 23);
		add(fieldDataPagamento);
		
	}
}
